home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PGetObjectLoc.cpp < prev    next >
C/C++ Source or Header  |  1996-08-15  |  781b  |  32 lines

  1. /*
  2.  *--- PGetObjectLoc.cpp ---------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PGetObjectLoc.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PGetObjectLoc.h"
  12. #include "PQuery.h"
  13. #include "PRequestBuf.h"
  14.  
  15. const size_t REPLY_SIZE = 8;
  16.  
  17. PGetObjectLoc::PGetObjectLoc(short cHandle)
  18. {
  19.     char temp[8];
  20.     PRequestBuf request(temp);
  21.     
  22.     request << cHandle;
  23.  
  24.     long x[16];
  25.     PQuery query(pm_getobjectloc, request, x, REPLY_SIZE);
  26.  
  27.     xValue = x[0];
  28.     yValue = x[1];
  29. }
  30.  
  31. // end of PGetObjectLoc.cpp
  32.